package com.yl.chainStore.mapper.pay

import com.yl.chainStore.entity.pay.SysCompanyPayItemType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yl.chainStore.pojo.vo.pay.SysCompanyPayItemTypeSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-07-05
 */
@Mapper
interface SysCompanyPayItemTypeMapper : BaseMapper<SysCompanyPayItemType> {

	/**
	 * 查询分类列表
	 */
	fun getList(@Param("vo")vo: SysCompanyPayItemTypeSelectVo):MutableList<SysCompanyPayItemType>

	/***
	 * 子分类是否在父级分类的下级分类里面
	 */
	fun haveSubType(@Param("subId") subId: Long, @Param("superId") superId: Long): Int
}
